<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<form>
				<input type="radio" id="male" value="1" v-model="gender"><label for="male">男</label>
				<input type="radio" id="female" value="2" v-model="gender"><label for="female">女</label>
				<span>爱好</span>
				<input type="checkbox" value="1" v-model="hobby">
				<label>写代码</label>
				<input type="checkbox" value="2" v-model="hobby">
				<label>去学校</label>
				<input type="checkbox" value="3" v-model="hobby">
				<label>睡觉</label>
				<input type="checkbox" value="4" v-model="hobby">
				<label>吃饭</label>
				<br>
				<textarea v-model="desc">	</textarea>
				<br>
				<select v-model="job" multiple>
					<option value="0">请选择职业....</option>
					<option value="1">程序员</option>
					<option value="2">厨师</option>
					<option value="3">自由职业</option>
				</select>
			
			</form>
		</div>
		<script>
			let vm=new Vue({
				el:'#app',
				data:{
					//默认指定value=2的单选框
					gender:2,
					//对于复选框必须使用数组的形式
					hobby:['1','4'],
					desc:"hello Vue",
					job:['1','3']
				},
				methods:{
					
				}
			});
		</script>
	</body>
</html>
